package com.party.core.model.mall;

import com.party.core.model.BaseModel;

import java.util.List;

/**
 * 商城产品
 * Created by wei.li
 *
 * @date 2017/8/15 0015
 * @time 15:30
 */
public class MallProduct extends BaseModel {

    //商品编号
    private String goodsId;

    //价格
    private Double price;

    //库存
    private Long stock;

    // 实际库存
    private Long realStock;

    //销售量
    private Long salesNum;

    //排序
    private Integer sort;

    //图片
    private String pic;

    private List<MallGoodsSpec> specs;

    // 成本价
    private Double costPrice;

    // 批发价
    private Double tradePrice;

    // 规格编码
    private String number;

    public MallProduct() {
    }

    public MallProduct(String goodsId) {
        this.goodsId = goodsId;
    }

    public String getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(String goodsId) {
        this.goodsId = goodsId;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public Long getStock() {
        return stock;
    }

    public void setStock(Long stock) {
        this.stock = stock;
    }

    public Long getRealStock() {
        return realStock;
    }

    public void setRealStock(Long realStock) {
        this.realStock = realStock;
    }

    public Long getSalesNum() {
        return salesNum;
    }

    public void setSalesNum(Long salesNum) {
        this.salesNum = salesNum;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public String getPic() {
        return pic;
    }

    public void setPic(String pic) {
        this.pic = pic;
    }

    public List<MallGoodsSpec> getSpecs() {
        return specs;
    }

    public void setSpecs(List<MallGoodsSpec> specs) {
        this.specs = specs;
    }

    public Double getCostPrice() {
        return costPrice;
    }

    public void setCostPrice(Double costPrice) {
        this.costPrice = costPrice;
    }

    public Double getTradePrice() {
        return tradePrice;
    }

    public void setTradePrice(Double tradePrice) {
        this.tradePrice = tradePrice;
    }

    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }
}
